package com.haruhi.bot.job.thread;

import com.haruhi.bot.service.PixPictureService;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class DeleteRepeatPictureThread implements Runnable{

    private PixPictureService service;

    public DeleteRepeatPictureThread(PixPictureService pixPictureService){
        this.service = pixPictureService;
    }

    @Override
    public void run() {
        service.deleteRepeatPicture();
    }

    public static void execute(PixPictureService service){
        new Thread(new DeleteRepeatPictureThread(service)).start();
    }
}
